<?php

$sql = "SELECT * FROM `admins` WHERE login = '".$_SESSION['m_login']."' AND password = '".$_SESSION['m_password']."'";
$result = mysql_query( $sql );
$checking = mysql_num_rows($result);

?>